package com.ts.api.module.common.service.impl;


import com.ts.api.http.user.real.HdUserUserRealAuthProvider;
import com.ts.api.module.common.service.UserRealAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRealAuthServiceImpl implements UserRealAuthService {

    @Autowired
    private HdUserUserRealAuthProvider hdUserRealNameAuthProvider;

    /**
     * 姓名+身份证
     */
    @Override
    public Boolean nameAndIdcard(String name, String idCard) {
        return hdUserRealNameAuthProvider.nameAndIdcard(name, idCard);
    }

    /**
     * 姓名+手机号
     */
    @Override
    public Boolean nameAndPhone(String name, String phone) {
        return hdUserRealNameAuthProvider.nameAndPhone(name, phone);
    }
}
